home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 March / Macworld CD-ROM (March 1995).cdr / Updaters / AppMaker 1.5.2->1.5.4 / Libraries / THINK / AMClassLibC / AMUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-24  |  1.1 KB  |  48 lines  |  [TEXT/KAHL]

  1. /*    AMUtilities.h - common AppMaker library routine interface    */
  2. /*    Copyright © 1991, Bowers Development Corporation.    */
  3.  
  4. #pragma once
  5.  
  6. #include <CPane.h>
  7.  
  8. CLASS    CEditText;
  9. CLASS    CButton;
  10.  
  11. /*----------*/
  12. typedef struct {    
  13.     short            textStyle;
  14.     short            textSize;
  15.     Str255            fontName;
  16. } StylesRec, *StylesP, **StylesHdl;
  17.  
  18. typedef struct {
  19.     short            textJust;
  20.     StylesRec        editStyles;
  21. } EditStylesRec, *EditStylesP, **EditStylesHdl;
  22.  
  23. /*    All control panes share this common template structure.    */
  24. typedef struct {
  25.     PaneTemp        sPaneTemp;
  26.     long            clickCmd;
  27.     short            procID;
  28.     short            minValue;
  29.     short            maxValue;
  30.     short            curValue;
  31.     Str255            title;
  32.     StylesRec        typeStyle;
  33. } AMCtlPaneTemp, *AMCtlPaneTempP, **AMCtlPaneTempHdl;
  34.  
  35. /*----------*/
  36. void    AMSetFontSizeStyle    (CEditText        *textObject,
  37.                              EditStylesP    p);
  38. void    AMSetTextID            (CEditText        *textObject,
  39.                              short            textID);
  40. void    AMSetupTextEnvirons    (CPane            *thePane,
  41.                              StylesP        p);
  42. short    AMGetFontNum        (Str255            fontName);
  43. void    IAMControlPane        (CButton        *controlObject,
  44.                              CView            *anEnclosure,
  45.                              CBureaucrat    *aSupervisor,
  46.                              Ptr            viewData);
  47.  
  48.